<!-- head包usr.js -->
<script type="text/javascript" src='__PUBLIC__/JS/admin/usrhd.js'></script>

<script type="text/javascript">
var dologinout='__APP__/Usr/dologinout';
</script>
<header class="navbar navbar-fixed-top navbar-inverse" id='divhd' style='margin-bottom: 0px;'>
  <div style='padding-left: 20px;padding-right: 20px'>
    <div class="navbar-header">
      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a href="__ROOT__/index.php" class="navbar-brand">获取卡密</a>
    </div>
    <nav class="collapse navbar-collapse bs-navbar-collapse">
    <ul class="nav navbar-nav navbar-right">
		<li>
			<a class='cursorpoint' onclick='window.location.reload()'><i class='glyphicon glyphicon-refresh'></i> 刷新</a>
		</li>	
    <li>
      <a href='__ROOT__/admin.php'>进入后台</a>
    </li> 			
	  </ul>
    </nav>
  </div>
</header>


<script>
$(function(){
	$('#usr_loginout').click(function(){
		$.ajax({
            'type': 'GET',
            'url': dologinout,
            'async':false,  
            'contentType': 'application/json',
            'data': {},
            'dataType': 'json',
            'success': function(data) {
            	window.location.href='__APP__';
             
                console.log("success");
            },
            'error':function() {
                console.log("error");
            }
        });
	})
})
</script>